﻿using System;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Waf.Applications;
using WafApplication1.Applications.Views;

namespace WafApplication1.Applications.ViewModels
{
    [Export]
    class HouseTypeViewModel : ViewModel<IHouseTypeView>
    {
        private PageViewModel pageViewModel;

        [ImportingConstructor]
        public HouseTypeViewModel(IHouseTypeView view)
            : base(view)
        {
        }

        public PageViewModel PageViewModel
        {
            get { return pageViewModel; }
            set { SetProperty(ref pageViewModel, value); }
        }

        /// <summary>
        /// 添加子界面的方法。
        /// </summary>
        public void AddPageView()
        {
            ViewCore.AddPageView();
        }
    }
}
